import React, { Suspense } from 'react';
import { useRoutes } from 'react-router-dom'


import '@/App.css';
import route from './router/routeConfig'

function App() {
  return (
    <div className="App">
      <Suspense fallback={<div className='loading'><img src="https://hbimg.b0.upaiyun.com/42c725b3935a1ce3e32897b9995c1b6a2e921d335690-Ck6vZO_fw658" alt="" /></div>}>

        {
          useRoutes(route)
        }
      </Suspense>
      {/* 渲染路由规则 */}
    </div>
  );
}

export default App;
